package org.rowan.infovis.soccer;

/**
 *
 * @author Kevin McGarry
 */
public class StateManager {
    
    // holds current state of sytem
    // 0 = Title Screen
    // 1 = Field Viewer
    // 2 = Player Viewer
    private int currentState = 0;

    private boolean imported = false;
    private boolean choosing = false;
    private boolean leftSelection = true;

    public void setTitleState() {
        currentState = 0;
    }

    public void setFieldState() {
        currentState = 1;
    }

    public void setPlayerState() {
        currentState = 2;
    }

    public int getState() {
        return currentState;
    }

    public void setFileImported() {
        imported = true;
    }

    public boolean fileImported() {
        return imported;
    }

    public void setChoosingFile(boolean c) {
        choosing = c;
    }

    public boolean choosingFile() {
        return choosing;
    }

    public boolean leftSelection() {
        return leftSelection;
    }

    public void swapSelection() {
        leftSelection = !leftSelection;
    }

}
